#include "modify.h"
#include "ui_modify.h"
#include <QPushButton>
#include <QDebug>
Modify::Modify(QWidget *parent) :
  QWidget(parent),
  ui(new Ui::Modify)
{
  ui->setupUi(this);
  connect(ui->pushButtonCancel, &QPushButton::clicked, this, &QWidget::close);
  connect(ui->pushButtonSave, &QPushButton::clicked, [=](){
    modifyValue_ = ui->lineEdit->text();
    ui->lineEdit->clear();
    emit saveModify();
    this->close();
  });
}

Modify::~Modify()
{
  delete ui;
}
